package cn.hxt.org.domain;

import cn.hxt.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor//无参构造
@AllArgsConstructor//所以有参构造
public class Department extends BaseDomain{

    //部门编号我改变了
    public String sn;
    //部门名称
    public String name;
    //上级部门路径
    public String dirPath;
    //部门状态
    public Integer state;

    //部门管理员id
    public Long manager_id;
    public Employee manager;


    //上级部门
    public Long parent_id;
    public Department parent;

    //二级
    public List<Department> children = new ArrayList<>();

}
